package com.itheima.Demo01.demo02;

import java.io.FileInputStream;
import java.io.IOException;

public class Test04 {
    public static void main(String[] args) throws IOException {
        FileInputStream flie = new FileInputStream("dya0610-code");
        //在对象中获取一个字节转换成基本类型
//        while (true) {
//            int read = flie.read();
//            if (read == -1) {
//                break;
//            }else {
//                System.out.println((char) read);
//
//            }
//        }
        int a;
        while ((a = flie.read())!=-1){
            System.out.println( a);
        }
        flie.close();
    }
}
